package com.xiaowenxiong.entity;

import javax.validation.constraints.NotNull;

public class Course {
    @NotNull(message = "课程号不可为空！")
    private Integer cno;
    @NotNull(message="课程号不可为空！")
    private String cname;
    @NotNull(message="学分不可为空！")
    private Integer ccredit;

    public Integer getCno() {
        return cno;
    }

    public void setCno(Integer cno) {
        this.cno = cno;
    }

    public String getCname() {
        return cname;
    }

    public void setCname(String cname) {
        this.cname = cname == null ? null : cname.trim();
    }

    public Integer getCcredit() {
        return ccredit;
    }

    public void setCcredit(Integer ccredit) {
        this.ccredit = ccredit;
    }

}